<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Radial Gradient Shadow</title>
  </head>
  <body>
    <div class="gradient">
      <h1>如果要实现偏移和透明背景需要考库clip-path裁剪</h1>
    </div>
    <style>
      * {
        margin: 0px;
        padding: 0px;
      }
      .gradient {
        margin-top: 20px;
        margin-left: 5%;
        width: 90%;
        position: relative;
        padding-top: 50px;
        padding-bottom: 50px;
        border-radius: 10px;
        padding-right: 10px;
        padding-left: 10px;
        background-color: black;
      }
      h1 {
        color: white;
        text-align: center;
      }
      .gradient::after {
        content: '';
        position: absolute;
        z-index: -100;
        background: radial-gradient(yellow, red, blue);
        inset: -1rem;
        filter: blur(10px);
      }
    </style>
  </body>
</html>
